ui = {
   home:
      <vertical>
         <appbar background="#ff02a6fc">
            <toolbar title='' id='toolbar'>
               <horizontal layout_gravity="left|center" >
                  <text text="懒人中控客户端" textColor="#ffffff" paddingLeft="10dp" textSize="20sp" gravity="center" id="title" />
               </horizontal>
            </toolbar>
         </appbar>
         <viewpager id="viewpager" >
            <vertical >
               <ScrollView layout_weight="0.98">
                  <linear w="match_parent" h="match_parent" orientation="vertical" bg="#F0F0F0" gravity="center">
                     <ScrollView w="match_parent" h="wrap_content" fillViewport="true">
                        <linear w="match_parent" h="wrap_content" orientation="vertical" id="CheckBoxMain">
                           <linear w="match_parent" h="30dp" bg="#FFFFFF" orientation="horizontal" gravity="center_vertical">
                           </linear>
                           <linear w="match_parent" h="35dp" bg="#FFFFFF" orientation="horizontal" gravity="center_vertical" layout_marginBottom="4dp" >
                              <TextView w="auto" h="match_parent" gravity="center" text="中控编号:" textSize="13sp" textColor="#000000" layout_marginLeft="20dp" />
                              <EditText w="200dp" id="id" h="match_parent" text="" hint="请输入1-1000的数字编号" textSize="13sp" inputType="number" gravity="center_vertical" paddingRight="16dp" />
                           </linear>
                           <linear w="match_parent" h="35dp" bg="#FFFFFF" orientation="horizontal" gravity="center_vertical" layout_marginBottom="4dp" >
                              <TextView w="auto" h="match_parent" gravity="center" text="i p 端 口 :" textSize="13sp" textColor="#000000" layout_marginLeft="20dp" />
                              <EditText w="200dp" id="ip" h="match_parent" text="" hint="请填写服务端ip:端口" textSize="13sp" inputType="text" gravity="center_vertical" paddingRight="16dp" />
                           </linear>
                           <linear w="match_parent" h="35dp" bg="#FFFFFF" orientation="horizontal" gravity="center_vertical" layout_marginBottom="4dp" >
                              <TextView w="auto" h="match_parent" gravity="center" text="中控备注:" textSize="13sp" textColor="#000000" layout_marginLeft="20dp" />
                              <EditText w="200dp" id="remarks" h="match_parent" text="" hint="非必填" textSize="13sp" inputType="text" gravity="center_vertical" paddingRight="16dp" />
                           </linear>
                           <linear w="match_parent" h="40dp" bg="#FFFFFF" orientation="horizontal" gravity="center_vertical">
                              <CheckBox text="打开客户端30秒后自动启动" id="zidongqidong" w="auto" h="match_parent" layout_marginLeft="15dp" />
                           </linear>
                        </linear>
                     </ScrollView>
                  </linear>
               </ScrollView>
               <linear w="match_parent" h="auto" orientation="vertical" bg="#F0F0F0" layout_weight="0.02" >
                  <Button w="match_parent" h="wrap_content" text="启动" id="start" textColor="#FFFFFF" layout_gravity="bottom" textSize="18sp" background="#ff02a6fc" />
               </linear>
            </vertical>
         </viewpager>
      </vertical>
   ,
   log:
      <vertical id="showlogview">
         <linear w='150dp' h='150dp' orientation="vertical" padding='3dp' bg='#4C000000' >
            <TextView w="match_parent" h="wrap_content" textColor="white" id="log" textSize="11sp" text="显示日志" />
         </linear>
         <linear>
            <Button w="match_parent" h="wrap_content" text="停止启动" id="stop" textColor="#FFFFFF" layout_gravity="bottom" textSize="18sp" background="#ff7b68ee" />
         </linear>
      </vertical>
}